package com.nidu.demo.oauth2.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nidu.demo.oauth2.mapper.dataobject.OAuth2RefreshTokenDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;


@Mapper
public interface OAuth2RefreshTokenMapper extends BaseMapper<OAuth2RefreshTokenDO> {

    @Select("SELECT * FROM sys_oauth2_refresh_token WHERE refresh_token = #{refreshToken} LIMIT 1")
    OAuth2RefreshTokenDO selectByRefreshToken(String refreshToken);

}